/*
 * statistic.h
 *
 *  Created on: 02/12/2011
 *      Author: joagf
 */

#ifndef STATISTIC_H_
#define STATISTIC_H_
#include <string>
#include "structs.h"
#include "text.h"
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"

class Statistic{
public:
	int w;
	int h;
	bool ending;
	int totalBabus;
	int babusEsq;
	int down;
	int alpha;
	double m_wait;
	double busy_bright;
	double  time_bright;
	Point2d pos;
	SDL_Surface *back;
	SDL_Rect clip;

	Statistic():
		ending(false), totalBabus(0), babusEsq(0), pos(0.0, 0.0), back(NULL), down(0), alpha(SDL_ALPHA_OPAQUE - 30)
	{
		w = 600;
		h = 300;
		clip.x = 0;
		clip.y = 0;
		clip.w = 0;
		clip.h = 0;
		m_wait = 0;
		busy_bright = 0;
		time_bright = 0;
	}

	void setClip(int x_, int y_, int w_, int h_) {
		clip.x = x_;
		clip.y = y_;
		clip.w = w_;
		clip.h = h_;
	}

};

#endif /* STATISTIC_H_ */
